package com.itheima.service.store;

import com.github.pagehelper.PageInfo;
import com.itheima.domain.store.Product;

import java.util.List;

/**
 * @Author: My.zheng
 * @Description:
 * @Date: Created in 22:06  2020/11/29
 * @ModifiedBy:
 */
public interface ProductService {
    /**
     * @Description: 添加
     * @Param: [product]
     * @return: void
     * @Author: My.zheng
     * @Date: 2020/11/29
     */
    void save(Product product);

    /**
     * @Description: 删除
     * @Param: [product]
     * @return: void
     * @Author: My.zheng
     * @Date: 2020/11/29
     */
    void delete(Product product);

    /**
     * @Description: 修改
     * @Param: [product]
     * @return: void
     * @Author: My.zheng
     * @Date: 2020/11/29
     */
    void update(Product product);

    /**
     * @Description: 查询
     * @Param: []
     * @return: java.util.List<com.itheima.domain.store.Product>
     * @Author: My.zheng
     * @Date: 2020/11/29
     */
    List<Product> findAll();

    /**
     * @Description: Id查询
     * @Param: [Id]
     * @return: com.itheima.domain.store.Product
     * @Author: My.zheng
     * @Date: 2020/11/29
     */
    Product findById(String id);

    /**
     * @Description: 分页查询
     * @Param: [page, size]
     * @return: java.util.List<com.itheima.domain.store.Product>
     * @Author: My.zheng
     * @Date: 2020/11/29
     */
    PageInfo findAll(int pageNum, int pageSize);

    /**
    * @Description: 根据时间模糊查询
    * @Param: [time]
    * @return: java.util.List<com.itheima.domain.store.Product>
    * @Author: My.zheng
    * @Date: 2020/12/1
    */
    List<Product> FuzzyEnquiryTime(String time);
/**
* @Description: 根据ID删除
* @Param: [productIds]
* @return: void
* @Author: My.zheng
* @Date: 2020/12/1
*/
    void deleteById(List<String> productIds);
/**
* @Description: 开启
* @Param: [ids]
* @return: void
* @Author: My.zheng
* @Date: 2020/12/1
*/
    void dopen(String ids);

    /**
    * @Description: 关闭
    * @Param: [ids]
    * @return: void
    * @Author: My.zheng
    * @Date: 2020/12/1
    */
    void paralyse(String ids);
}
